package com.hongsen.cn.bean;

import android.content.Context;

import com.hongsen.cn.Utils.GsonUtils;
import com.hongsen.cn.Utils.SPUtil;

import java.io.Serializable;

public class TitleBean implements Serializable {

    public String titleOne;
    public String titleTwo;
    public String titleThree;
    public String titleFour;
    public String titleFive;

    //    public TitleBean(String titleOne,String titleTwo,String titleThree,String titleFour,
    //                     String titleFive){
    //        this.titleOne = titleOne;
    //        this.titleTwo = titleTwo;
    //        this.titleThree = titleThree;
    //        this.titleFour = titleFour;
    //        this.titleFive = titleFive;
    //    }

    public String getTitleOne() {
        return titleOne;
    }

    public void setTitleOne(String titleOne) {
        this.titleOne = titleOne;
    }

    public String getTitleTwo() {
        return titleTwo;
    }

    public void setTitleTwo(String titleTwo) {
        this.titleTwo = titleTwo;
    }

    public String getTitleThree() {
        return titleThree;
    }

    public void setTitleThree(String titleThree) {
        this.titleThree = titleThree;
    }

    public String getTitleFour() {
        return titleFour;
    }

    public void setTitleFour(String titleFour) {
        this.titleFour = titleFour;
    }

    public String getTitleFive() {
        return titleFive;
    }

    public void setTitleFive(String titleFive) {
        this.titleFive = titleFive;
    }

    public static void setBean(String str){
        SPUtil.putString("module_title_bean_str",str);
    }

    public static TitleBean getBean(Context context){
        String str = SPUtil.getString("module_title_bean_str","");
        return GsonUtils.getInstance().fromJson(str,TitleBean.class);
    }

}
